﻿using HuaweiCloud.Dotnet.Samples.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaweiCloud.Dotnet.Samples.Repository
{
    /// <summary>
    /// 默认的数据库上下文
    /// </summary>
    public class DefaultDbContext : DbContext
    {
        public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options)
        {
        }
        public DbSet<Weather> Weathers { get; set; }
    }
}
